package com.love.netty.service.impl;

import com.love.netty.model.UserChatList;
import com.love.netty.mapper.UserChatListMapper;
import com.love.netty.model.res.UserChatRes;
import com.love.netty.service.UserChatListService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wuj
 * @since 2021-07-05
 */
@Service
public class UserChatListServiceImpl extends ServiceImpl<UserChatListMapper, UserChatList> implements UserChatListService {

    @Autowired
    private UserChatListMapper userChatListMapper;

    @Override
    public List<UserChatRes> selectList(String toUserId) {
        return userChatListMapper.selectList(toUserId);
    }
}
